//package com.leyou.pojo.dto;
//
//import com.baomidou.mybatisplus.annotation.IdType;
//import com.baomidou.mybatisplus.annotation.TableId;
//import com.baomidou.mybatisplus.annotation.TableName;
//import com.leyou.common.dto.BaseDTO;
//import com.leyou.common.entity.BaseEntity;
//import lombok.AllArgsConstructor;
//import lombok.Data;
//import lombok.EqualsAndHashCode;
//import lombok.NoArgsConstructor;
//
//import java.io.Serializable;
//
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
//
//@EqualsAndHashCode(callSuper = false)
//public class SpuDetailsDto extends BaseDTO  {
//
//    private Long spuId;
//    private String description;
//    private String specification;
//    private String packingList;
//    private String afterService;
//
//    public SpuDetailsDto(BaseEntity entity) {
//        super(entity);
//    }
//
//
//    public <T> T toEntity(Class<T> entityClass) {
//        return super.toEntity(entityClass);
//    }
//}






















package com.leyou.pojo.dto;

import com.leyou.common.dto.BaseDTO;
import com.leyou.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author HuYi
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class SpuDetailsDto extends BaseDTO {
    private Long spuId;// 对应的SPU的id
    private String description;// 商品描述
    private String packingList;// 包装清单
    private String afterService;// 售后服务
    private String specification;// 规格参数

    public SpuDetailsDto(BaseEntity entity) {
        super(entity);
    }
}